import fetch from "./../fetch.js";

//获取考季列表
const getSeasonList = (params) => {
  return fetch({
    url: "/course/manage/seasonList",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 添加考季
const seasonAdd = (params) => {
  return fetch({
    url: "/course/manage/seasonAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

//修改考季
const seasonUpdate = (params) => {
  return fetch({
    url: "/course/manage/seasonUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

//删除考季
const seasonDelete = (params) => {
  return fetch({
    url: "/course/manage/seasonDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};

//获取科目列表
const subjectList = (params) => {
  return fetch({
    url: "/course/manage/subjectList",
    method: "post",
    data: JSON.stringify(params),
  });
};

//添加科目
const subjectAdd = (params) => {
  return fetch({
    url: "/course/manage/subjectAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

//修改科目
const subjectUpdate = (params) => {
  return fetch({
    url: "/course/manage/subjectUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 删除科目
const subjectDelete = (params) => {
  return fetch({
    url: "/course/manage/subjectDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};


//考试课程列表
const courseList = (params) => {
  return fetch({
    url: "/course/manage/courseList",
    method: "post",
    data: JSON.stringify(params),
  });
};

//添加考试课程
const courseAdd = (params) => {
  return fetch({
    url: "/course/manage/courseAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

//修改考试课程
const courseUpdate = (params) => {
  return fetch({
    url: "/course/manage/courseUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

//删除考试课程
const courseDelete = (params) => {
  return fetch({
    url: "/course/manage/courseDeletion",
    method: "post",
    data: JSON.stringify(params),
  });
};

//获取班级
const classList = (params) => {
  return fetch({
    url: "/class/manage/classList",
    method: "post",
    data: JSON.stringify(params),
  });
};

//添加班级
const classAdd = (params) => {
  return fetch({
    url: "/class/manage/classAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

//修改班级
const classUpdate = (params) => {
  return fetch({
    url: "/class/manage/classUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

//删除班级
const classDelete = (params) => {
  return fetch({
    url: "/class/manage/classDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};

//所有教师列表
const classTeacherList = (params) => {
  return fetch({
    url: "/class/manage/classTeacherList",
    method: "post",
    data: JSON.stringify(params),
  });
};

//获取授课信息列表
const teachCourseList = (params) => {
  return fetch({
    url: "/teach/course/courseList",
    method: "post",
    data: JSON.stringify(params),
  });
};

//添加授课信息列表
const teachCourseAdd = (params) => {
  return fetch({
    url: "/teach/course/courseAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

//修改授课信息列表
const teachCourseUpdate = (params) => {
  return fetch({
    url: "/teach/course/courseUpdate",
    method: "post",
    data: JSON.stringify(params),
  });
};

//删除授课信息列表
const teachCourseDelete = (params) => {
  return fetch({
    url: "/teach/course/courseDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 考试管理列表
const examList = (params) => {
  return fetch({
    url: "/exam/manage/examList",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 考试添加
const examAdd = (params) => {
  return fetch({
    url: "/exam/manage/examAdd",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 考试修改
const examEdit = (params) => {
  return fetch({
    url: "/exam/manage/examEdit",
    method: "post",
    data: JSON.stringify(params),
  });
};

//删除考试
const examDelete = (params) => {
  return fetch({
    url: "/exam/manage/examDelete",
    method: "post",
    data: JSON.stringify(params),
  });
};

export default {
  getSeasonList,
  seasonAdd,
  seasonUpdate,
  seasonDelete,
  subjectList,
  subjectAdd,
  subjectUpdate,
  subjectDelete,
  courseList,
  courseAdd,
  courseUpdate,
  courseDelete,
  classList,
  classAdd,
  classUpdate,
  classDelete,
  classTeacherList,
  teachCourseList,
  teachCourseAdd,
  teachCourseUpdate,
  teachCourseDelete,
  examList,
  examAdd,
  examEdit,
  examDelete
}
